﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessLayer;
namespace PresentationLayer
{
    public partial class CriarObra : Form
    {
        public CriarObra()
        {
            InitializeComponent();
        }

        private void bCriar_Click(object sender, EventArgs e)
        {
            this.textCliente.SelectAll();
            this.textHorasEst.SelectAll();
            this.textOficina.SelectAll();
            this.textValorEs.SelectAll();
            this.textVeiculo.SelectAll();
            this.BoxEstado.SelectAll();
            if (ObraActions.CriarObra(this.textOficina.SelectedText, this.textVeiculo.SelectedText,this.textCliente.SelectedText,
                this.BoxEstado.SelectedText, this.datePickerRegisto.Value, this.textValorEs.SelectedText, this.textHorasEst.SelectedText))
                this.Close();
        }
    }
}
